﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pilot_Main.aspx.cs" Inherits="Vehicle.Web.Pages.Recycle.Pilot_Main" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>物流管理系统</title>
    <link href="../../Style/skin.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="../../Scripts/Menu.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>   <td width="17" valign="top" background="../../Images/mail_leftbg.gif"><img src="../../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../Images/content-bg.gif">
                <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                    id="table2">
                     <tr>
                      <td height="31"><div class="titlebt">驾驶员信息</div></td>
                     </tr>
                </table>
            </td>
            <td width="16" valign="top" background="../../images/mail_rightbg.gif">
                <img src="../../images/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td height="71" valign="middle" background="../../images/mail_leftbg.gif">
                &nbsp;
            </td>
            <td valign="top" bgcolor="#F7F8F9">
                <table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="13" valign="top">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="left_txt">
                                        当前位置：系统管理--回收站--驾驶员信息
                                    </td>
                                </tr>
                                <tr>
                                    <td height="15">
                                        <table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
                                            <tr>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="25">
                            <!-- 筛选数据选择项 -->
                            <table cellspacing="0" cellpadding="2" border="0">
                                <tbody>
                                    <tr>
                                        <td class="left_txt">
                                            筛选数据：
                                        </td>
                                        <td class="left_txt">
                                            录入时间：
                                        </td>
                                        <td class="left_txt">
                                            起始日期：
                                        </td>
                                        <td class="left_txt">
                                            <cc1:GMDatePicker ID="Gmdp_Start" runat="server" CalendarTheme="Blue" Font-Size="12px"
                                                NoneButtonText="清空" TodayButtonText="今天" InitialValueMode="Null" EnableViewState="False"
                                                DisplayMode="Label">
                                            </cc1:GMDatePicker>
                                        </td>
                                        <td class="left_txt">
                                            截止日期：
                                        </td>
                                        <td class="left_txt">
                                            <cc1:GMDatePicker ID="Gmdp_End" runat="server" CalendarTheme="Blue" Font-Size="12px"
                                                NoneButtonText="清空" TodayButtonText="今天" InitialValueMode="Null" CalendarWidth="200px"
                                                EnableViewState="False" DisplayMode="Label">
                                            </cc1:GMDatePicker>
                                        </td>
                                        <td>
                                            <asp:Button ID="btn_Select" runat="server" Text="筛选" class="button" OnClick="btn_Select_Click" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <!-- 定义AJAX控件  -->
                        <td>
                            <asp:ScriptManager ID="SM_AJAX" runat="server">
                            </asp:ScriptManager>
                            <asp:UpdatePanel ID="UPanel" runat="server">
                                <ContentTemplate>
                                    <!-- 定义Repeater控件用于绑定数据  -->
                                    <asp:Repeater ID="ReptShow" runat="server" OnItemDataBound="ReptShow_ItemDataBound"
                                        OnItemCommand="ReptShow_ItemCommand">
                                        <HeaderTemplate>
                                            <table id="grid" class="Tablt_All" cellspacing="1" cellpadding="2" rules="all" border="0">
                                                <tbody>
                                                    <tr class="main_tab">
                                                        <td width="8%">
                                                            选择
                                                        </td>
                                                        <td width="10%">
                                                            驾驶员姓名
                                                        </td>
                                                        <td width="10%">
                                                            驾驶员编号
                                                        </td>
                                                        <td width="13%">
                                                            所属车队
                                                        </td>
                                                        <td width="10%">
                                                            所属车辆牌号
                                                        </td>
                                                        <td width="12%">
                                                            联系电话
                                                        </td>
                                                        <td width="10%">
                                                            承运任务
                                                        </td>
                                                        <td width="10%">
                                                            录入时间
                                                        </td>
                                                        <td width="18%">
                                                            操作
                                                        </td>
                                                    </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr class="TR_All">
                                                <td>
                                                    <asp:CheckBox ID="Chk_Num" runat="server" ToolTip='<%# Eval("P_ID") %>' />
                                                </td>
                                                <td>
                                                    <%# Eval("P_Name")%>
                                                </td>
                                                <td>
                                                    <%# Eval("P_Num")%>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lab_M_ID" runat="server" Text='<%# Eval("M_ID")%>'></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lab_V_ID" runat="server" Text='<%# Eval("V_ID")%>'></asp:Label>
                                                </td>
                                                <td>
                                                    <%# Eval("P_Tel")%>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lab_P_Transit" runat="server" Text='<%# Eval("P_Transit")%>'></asp:Label>
                                                </td>
                                                <td>
                                                    <%# Eval("P_Time", "{0:yyyy-MM-dd}")%>
                                                </td>
                                                <td>
                                                    <img src="../../images/pic22.gif" height="13" /><asp:LinkButton ID="lbtn_Delete"
                                                        runat="server" CommandName="Delete" CommandArgument='<%# Eval("P_ID")%>'>删除</asp:LinkButton>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </tbody></table>
                                        </FooterTemplate>
                                    </asp:Repeater>  
                                  <font style="text-align:center; color:Red;"><%= onshow %></font>
                                    <!-- 注册外部控件调用AJAX控件  -->
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="btn_Select" />
                                    <asp:AsyncPostBackTrigger ControlID="Anp_Page" />
                                    <asp:AsyncPostBackTrigger ControlID="lbtn_AllDelete" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" height="25">
                            <img src="../../images/pic21.gif" height="13" /><asp:CheckBox ID="Chk_All" runat="server"
                                onclick="selectall(this.checked)" />
                            <font class="left_txt">全选</font>&nbsp;&nbsp;&nbsp;
                            <img src="../../images/pic12.gif" height="13" />
                            <font class="left_txt">
                                <asp:LinkButton ID="lbtn_AllDelete" runat="server" OnClick="lbtn_AllDelete_Click">删除驾驶员</asp:LinkButton></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:UpdatePanel ID="UPanel2" runat="server">
                                <ContentTemplate>
                                    <!-- AspNetPager分页控件 -->
                                    <webdiyer:AspNetPager ID="Anp_Page" runat="server" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                                        FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageIndexBoxType="DropDownList"
                                        PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                                        TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" OnPageChanged="AspNetPager1_PageChanged"
                                        PageSize="10" LayoutType="Table" AlwaysShow="True" ForeColor="#80FFFF" BorderStyle="None"
                                        CssClass="left_txt">
                                    </webdiyer:AspNetPager>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
            </td>
            <td background="../../images/mail_rightbg.gif">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="middle" background="../../images/mail_leftbg.gif">
                <img src="../../images/buttom_left2.gif" width="17" height="17" />
            </td>
            <td height="17" valign="top" background="../../images/buttom_bgs.gif">
                <img src="../../images/buttom_bgs.gif" width="17" height="17" />
            </td>
            <td background="../../images/mail_rightbg.gif">
                <img src="../../images/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>
    <asp:UpdateProgress ID="UProgress" runat="server" AssociatedUpdatePanelID="UPanel">
        <ProgressTemplate>
            <font class="left_txt">数据提交中....</a></font>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <p>
        &nbsp; 根据信息选择：<asp:DropDownList ID="Drop_News" runat="server" AutoPostBack="true"
            OnSelectedIndexChanged="Drop_News_SelectedIndexChanged">
            <asp:ListItem Text="用户信息" Value="1"></asp:ListItem>
            <asp:ListItem Text="车队信息" Value="2"></asp:ListItem>
            <asp:ListItem Text="车辆信息" Value="3"></asp:ListItem>
            <asp:ListItem Text="任务信息" Value="4"></asp:ListItem>
            <asp:ListItem Text="费用信息" Value="5"></asp:ListItem>
            <asp:ListItem Text="驾驶员信息" Value="6"></asp:ListItem>
            <asp:ListItem Text="承运单信息" Value="7"></asp:ListItem>
        </asp:DropDownList>
    </p>
    </form>
</body>
</html>
